<?php

namespace app\admin\validate;

use think\Validate;

class Integral extends Validate
{
    protected $rule = [
        'user'                => 'require',
        'reason'              => 'require',
        'fraction'            => 'require',

    ];

    protected $message = [
        'user.require'     => '用户不能为空',
        'reason.require'      => '原因不能为空',
        'fraction.require'     => '分数不能为空',

    ];
    protected $scene = [
        'edit'  => ['id','user', 'reason', 'fraction','status','created_at','created_at'],
        'add'  => ['user', 'reason', 'fraction','status','created_at','created_at'],
    ];
}


